package com.fc.entity.input;

import com.fc.checkGroup.Insert;
import com.fc.checkGroup.Update;
import com.fc.enums.CategoryEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class CategoryInput {

    @Schema(title = "分类id")
    @NotNull(message = "id不能为空", groups = Update.class)
    private Long id;

    @Schema(title = "分类名称")
    @NotBlank(message = "分类名称不能为空", groups = {Insert.class, Update.class})
    private String name;

    @Schema(title = "分类类别")
    @NotNull(message = "分类类别不能为空", groups = {Insert.class, Update.class})
    private CategoryEnum type;
}
